<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/react.development.js"></script>
  <script src="./js/react-dom.development.js"></script>
  <script src="./js/babel.min.js"></script>
</head>

<body>

  <div id="app">

  </div>

  <script type="text/babel">
    // 列表循环
    let arr = ["111", "222", "333"]
    let res = arr.map((item, index) =>
      <li key={index}>
        值：{item}
      </li>
    )
    let vdom = <div>
      <ul>
        {res}
      </ul>
    </div>
    let root = ReactDOM.createRoot(document.querySelector("#app"))
    root.render(vdom)
  </script>
</body>

</html>